package homeword;
//需求
//已知正确的用户名和密码，请用程序实现模拟用户登录。
//总共给三次机会，登录之后，给出相应的提示
public class StringUserLogin {
        //已知正确的用户名和密码
        private String user;
        private String password;
        //空参
        public StringUserLogin(){}
        //全参
        public StringUserLogin(String user, String password) {
                this.user = user;
                this.password = password;
        }

        //get和set方法
        public void setUser(String user){
                this.user=user;
        }
        public String getUser(){
                return user;
        }
        public void setPassword(String password){
                this.password=password;
        }
        public String getPassword (){
                return password;
        }

}
